Simplify build script, fix paths