devel: add script to test out-of-tree builds