check VM file using bash