Fix shortening + auto-import of paths in Haxe metadata, closes #204

Not sure if this is the best approach, but it sems to work fine.