libmisc: implement subdir parameter for "make" command