Fix parseModule where for cases where main is the only function