Fix 'A Vagrant environment is required to run this command.' warning.