Renamed failsafe scripts to be more general conditional scripts
Fix directory reference when building outside of build directory and overwrite minified files. Ignore node modules directory properly