OS Detection for VM path in bash script