tidied up the build process and make now generates a run script