Fix package and script corruption when uploaded to JDS.
Credit Forrest for solving the mystery.