Fix VAGRANTFILE_API_VERSION check

Without using "defined" function, this will check if the value of VAGRANTFILE_API_VERSION is True or False, but VAGRANTFILE_API_VERSION may not be defined (for example, if the user didn't set this value in his ~/.vagrant.d/Vagrantfile), giving a "unitialized constant" error.