Resolve Bazel genrule output path errors by using $(location) expansion instead of static paths to ensure hermetic builds work in sandboxes and external repositories.