Check that file exists before trying to deploy it