Dir Fix

Fixes https://github.com/technoskald/maltrieve/issues/57