Add more info to build script, make it more generic