cylc/cylc — pull request #585 by matthewrmshin (2013-07-18 16:11:39+00:00)
Title: Wait for job file to properly close

Should prevent errors such as:
/bin/bash: SCRIPT: /bin/bash: bad interpreter: Text file busy

Short term fix for #584.