harp.cpp: let sub-functions create directories