APPDATA=%CD%/certainfolderforportablestuff
in bash should be
APPDATA=$PWD/certainfolderforportablestuff
And since you're just starting with bash I suggest that you place variables inside double quotes by default:
APPDATA="$PWD/certainfolderforportablestuff"