Change directory to 'dirname SCRIPT_PATH'

To fix a user-reported bug!