Hardcoded paths fix

using APPPATH instead of regular dir name.
Merge pull request #222 from PJanisio/fixes

Hardcoded paths fix