A function to remove .git extension on install command

#106 would be fixed. This commit removes the `.git` extension on path name when it exists.