cylc test-battery: improvements

Determine number of jobs by CPU count.
Change directory to `CYLC_DIR` if it is not `PWD`.
Use `diff -u` for comparasion instead of `diff` for more information.
Merge pull request #1079 from matthewrmshin/improve-test-battery

cylc test-battery: improvements