Fixed creation of custom module stub files.