[nix support] add checks for units and sanitze section names