Fix texturepacker integration script, this time for good.