make apply.sh independent of cwd