chore(commands/get): improve error message

Give more sensible error msg when getting the value of a directory key.