fixes a bug when built-in package names are upper-case