Only try to alter file if path exists