Allow custom pid/log paths or use correct one for OS