Fixed code to remove uneeded git markers