Fixes log and pid files location