Fixed a bug in ctypesgen when using --module option