Fix moduleName capitalization

str.capitalize() lowercases every letter besides the first one, breaking some module names (myModule.ml gives Mymodule instead of MyModule). This change capitalizes only the first letter.