fix relocatable scripts being created