Fix directory ownership and service enable issues.