Moved log to current dir and fixed hang when no user