Exporter working on Linux

Added abstraction for win/mac/lin