Resolves modules without underscores and hypens get a PHP error (Fix #2697)