Add extra status check so file delete doesn't reset git