fixed issue with ls_sync throwing on symlinks