Revert "creates module dir if it does not exist"

This reverts commit e81546515a018519b716ae62dc9c3985ed037686.