fix creating app directory if not exists

Closes #238
Merge pull request #245 from mhamrle/issue_238_binaries_crash

fix creating app directory if not exists
fix resizing buffer in anyoption

Closes #208