Used fs.existsSync that doesn't exists in nodejs 0.6 that is used by travis for testing.