Changed filename from machinename to slug

Because `wp scaffold post-type jm-foo` scaffolds a file name jm_foo.php bacause the machinename hyphens get replaced by underscores.
Same behaviour as the plugin scaffold.

Hyphens should separate words.
Merge pull request #289 from jmslbam/master

Scaffold filename using slug and not machinename