Fix class path dependency with relative path.