Fixing bug of trailing slash. closes #73