Fix static paths when run as a dependency.