fixed relative directory bug

for issue #3.