Check mkdir directory permissions