allow to override basePath in a job variant, handle spawn error