updated check for vagrant variable