Allow to set MaxPermSize for generate task in build script