trying to fix some platform issues

using path.join
updated version
Merge pull request #1 from youbastard/master

tapir not working in osx