fix for cli script running in cron, with no 'pwd'