[IMPROVEMENT] add output for detached head (issue #49) [FIX] fix cleanup temporary directory on linux (issue #50)