improve regex to match deployment ID for /runtime

The deployment ID path fragment for the /runtime resource was not handling underscores in package/project names. I copied over a different expression that is used in DeploymentResource.