Small builder fixes

Fixed builder/_locate_service to check or use the key param

Fixed builder/deploy_image typos in parameter name

Reformatted sed calls for readability