make: replace findstring with filter in sys/Makefile

Related: issue #672.