Change depracated File.exists? to File.exist?, change assignment in conditional to '==
'