revert unix sh gen file function because issue #35
merged