fixed the mac/linux gen script