add a timeout to run_command (it seems sometimes simple things like qsta...

...t -u {username} can hang indefinitly