added non-gui version, fix: correct dection of deleted files on startup