Bug fix when naming wq resource summary files
automatically detect number of gpus available

Wraps nvidia-smi to query the number of gpus installed.
copy gpu_detection script when setting up worker's working directory