Refactored vm clone cspec code to work with all Linux distros