Refactor #5580: Add new file&directory apis into FileUtils and test cases

To detect the full path of a given filename regarding all the search path and resolution