dir_path function

Construct an arbitrary path.