Fixes warning that File.exists 'been  deprecated in 2.1