Correcting the way the deploy_to path is obtained.