sanitize job ID so it can be used for making paths
distinction between functions, jobs and tasks