FM: remove code duplication in dirview_mkdir