nmf: enabled specifying the temporary directory's base location (fixes issue #20)