Updated RecMkDir to work with network directories