read .git/HEAD by git rev-parse command to get it properly
v0.03 .git/HEAD fix