Upgraded to use fs instead of deprecated path.

lib/controller.js
     - use fs.exists instead of deprecated path.exists.