Always check #[crate_name] attribute

Otherwise we get an unused attribute warning when the crate name is set
via the command line.