Adding a test to ensure master .git directory is not accidentally removed.

Thanks to InfernoZeus for reporting this bug.