Bugfixes while uploading user jobs:

- Better Error handling
- Truncation of extension in pdb codes