Fixes warnings on deprecated File.exists?