create parent dir before machine dir