Workaround issue where log file is not written to until delayed job exits.
Merge branch 'raketasks'

Rebasing and merging pull request #163