Try to expand symlinks if possible