proper check for build*.js existence