Use last part of dotted main class for target file (closes HaxeFoundation/haxe#2332)
Merge pull request #3 from nadako/master

Use last part of dotted main class for target file