make script independent of netbeans version