added scriptExtensions option to allow users to take advantage of GROOVY-5021 fix