dereference links when opening files

this avoids lscd trying to "open" a symlink to a directory with
the file opener