Modify bin and obj paths.
Fix relative uris.
Fix actual export file writing (position was at the end when it's not supposed to be).