Use resolve and findup-sync to resolve modules relative to the cwd.

- Using resolve to find sequelize allows sequelize-cli to work when sequelize is installed higher up the tree.
- Using findup to find package.json allows the same for checking the version of the dialect.