Checking proper subpath