check to make sure file exisits before removing it