bug fix: duplicate searching

‘sbin’ directories shouldn’t be searched when root=False.