export PATH for cronjob to work and redirect script's error output to the log file too