Update apply.sh

Added patch to determine real path to script to fix symbolic link to apply.sh