Use ruby to check whether phantomjs exists.

`which` does not exists in Windows, and `which x` may returns nil
instead of string.

Refs #515
Suppress Thin logging in rspec.