Fix optional default script loading

Groovy is optional as a dependency in the classpath, make sure we properly detect when its not at the right time to disable it