[PATCH 3/5] reg: Strip trailing backslash (if present) from the specified registry key