Remove unnecessary directory creation
Fix starting directory of generate-reference
Constant propagation in multiplication