Tracked files get now marked as intended

Before the folders containing tracked files did not get marked, This is
fixed now.