check for file existance before removing it