made relative paths absolute so the script can be executed from a cronjob