Change validation of max name lenght in PBS class

Fixes #45