cleanup unnecessary ternary op
default to current cookbook if no cookbook provided in uri