Fix deprecation warning on IO::Path.slurp