Fix 2 small bugs, conditionally install xvfb

PHANTOMJS and REQUIRED_RUBY environment variable tests were always true

Set HEADLESS to install xvfb, the X.org virtual frame buffer