Name virtual machine according to parent directory.