Fix moduleName capitalization

str.capitalize() lowercases every letter besides the first one in the
filename, breaking module names. This change capitalizes just the first
letter.