fixed the dirty check so that it catched added files too, added a dirty check after doorstop to ensure automatically trusted items/links aren't missed