This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
See the attached patch.
Created attachment 57678 [details] Proposed patch
AFAIK no one maintains this script so if you want to patch it just go ahead.
Fixed in c21dff1077e0.