Fixed git media sync

Fixed "git media sync" which didn't work properly when executed
in subfolders because ".git" is explicitly specified in git_media_buffer