Removed unsed variables

王权利请求将github/fork/yatish27/cleanup合并到master

Created by: yatish27

  • unused variables in couple of functions
  • replace File.exists? with File.exist? (deprecation)

合并请求报告