Use symlinks instead of hardlinks in dotrcfiles

Hardlinks may be broken if one file is deleted and they do not work
across different filesystems
Fix a bug in the git prompt when being in a .git folder