Fixed bug in RecMkDir when checking network dirs