Reorganize includes. Change wrong variable names. Add missing variable names. Move BUILD_PATH var from project to common settings.
Add nounset and errexit shell settings for common and minimal scripts