Save `submit.out` and `submit.err` in a directory with Unique ID

The file submit.out and submit.err should be saved in directory with unique ID instead of getting overwritten by the new submission every time.