Added max_length param to the jobname.

Fixes #53