fix service name and dir permissions