scanner: implement replacements for disk/raid RE
block: use re2c functions now
scanner: silence warnings about unused variables
local: import scanner header
Makefile: generate scanner.h
remove isrootpath and use the re2c version