Catch cross condition in making vm image directory