Corrected problem with symbolic links

The highlighting does not work when a file is located in directory that is symbolic link. The following small code changes fixes issue for me.