Added sed_call to _utils, fixed basename parameter handling