Fix for not matching mac when setting directories

This fixes Issue #32