Added filter to remove paths that are not directories and warn user.