Fix an potential error in handling conf

If the directory name doesn't end with "/", we will add it for you.