Fix read_filepaths function and add unit tests

When resource_path is a single file do not append glob because it woul
return a list. Instead append it only. If resource_path is a string
containing path specification, such as wildcards use glob function
Extract file system utilities.
Update usage instruction in README.