fix(transformer): Fixing invalid code generation for dashed filenames

When entry point dart filenames contained dashes then the generated library name was incorrect.

Closes #947