Issue 128: store directory value for cron job

Tested on our server, so mergin.