cd to the script's directory in case it is not the current working directory (such as crontab)