reverting a recent change that breaks `generate` step in build. -Closes: #727
mentioned in issue #735