[build] Fixed installation of rootmap files

Installation of rootmap files was broken for out-of-tree builds,
also causing "make distcheck" to fail.