[test] Use `--debug-build-paths` instead of `NEXT_PRIVATE_APP_PATHS` (#85504)
With `--debug-build-paths` being added in #85052, we can now use this
CLI flag in tests, instead of setting the private environment variable
`NEXT_PRIVATE_APP_PATHS`.
Related to this change, this PR fixes how we print the dev, start and
build commands during tests, by properly escaping the CLI arguments.
This ensures that the command is copy-pasteable even when the args
contain escaped characters.