fix strlen(path) comparison

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
trivial: fix error reporting

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>