Go back to the prepare_command method of building.

The correct way isn't working and This way worked built with the example project.