fixing some issues with rails deployments