remove trailing whitespace
`asset_path` respects SCRIPT_NAME.

Closes #2992