Fix permission issue in launcher and build script