Linux build script and dir cleanup