check if file exists before aborting the build