added missing $HOME to log file