Check if app.shared_dir.nil? in deployment.yml.erb.