Added method to determine the full path of a file (either in the documents directory or in the main bundle)