Fix the remote build process