alternative to File.open that mkdirs the full path if necessary
more sensible name for opening pry