make logs dirname consistent with initscript & configfile
add support for apps taking options on ARGV
Merge pull request #7 from mfournier/misc-fixes

Misc fixes