Cleaned up the build script a bit.