Make sure log is directed to log file when running in background
Bump version to 0.3.1