Refactored by checking file's canonicalPath instead of resolving URI
path

Added other filters to determine if a TURL is valid or not.