Using File.exists? more generally instead of File.directory? so /tmp/jekyll is always removed before running tests