don't switch windows if a prefix of an open folder