added checks to the build config
reworked all build scripts
fixed all build scripts