Support attributes with leading directory names

This is useful for mocking block devices, which have attributes like
"queue/rotational".

https://github.com/martinpitt/umockdev/issues/41