Make modulefile generation optional.