fix for situation where user doesn't set a custom dir