fixed spurious requirement for metadataPath when pipeToModule used instead