job script: export CYLC_TASK_SUBMIT_NUMBER

New environment variable containing the submit number.
Test: use `test` instead of bash `((...))` syntax
Merge pull request #1108 from matthewrmshin/job-script-submit-num

job script: export CYLC_TASK_SUBMIT_NUMBER