allow user-specified intermediates directory