Using dos2unix instead of sed
- Removed deleting empty dirs
- Dropped perl macro