Fixed build scripts when profile sets host