fixes to allow working with script as haxelib