Fix targetctl restore

Minor issues that prevented `targetctl restore` from working.