Tidy up get_id function for PBS.

Since PBS only seems to return the job-id to stdout I've just copied the logic from the background get_id function.