Get the file contents, seamlessly available for both local file system and HTTP(S)