adding directory check to vagrant script