Change deprecated File.exists? to File.exist?, change assignment in cond...

...itional to '==

'