Fix corrupt files due to either GITX or GitHub GUI client