check path for git rep and print.err for io exception