check that file exists before bundling