[utils] Return non-nil if we moved to proper filename
Stay inside the subtree after filtering (stay on the same file if
possible, or move to the end)