Massaging the build process

Preparing ground for further work on build scripts.
I would prefer to leave the `.sh` extensions on shell scripts.