Source profiles in detaching tasks, for cylc version selection.
Merge pull request #622 from hjoliver/detaching-task-source-profile

Source profiles in detaching tasks, for cylc version selection.