Implement mkdir -p in megafs