Move run-cmd functionality to external bcbio.run library