ensure directory at the correct spot