Added creation of phantomjs home directory.