refactor core output directory creation

also fix an oversight in the bsnes build
Merge pull request #106 from l3iggs/patch-3

(Android) refactor core output directory creation