Get machine info from command-line tools first, else queue

This code gets machine information from command-line tools instead of queueing a job; it is generalized such that this functionality can be implemented for additional schedulers and then added to the case-switch dictionary. I've tested this over here but we only have a slurm scheduler so it's probably worth making sure that sge et al. still work as expected.