Fix a trailing slash error in SCRIPT_NAME handling.

The previous commit broken the `/slides` endpoint if `SCRIPT_NAME` has a trailing slash.
Merge commit 'dae7aae67b53626f9ec34265bc3a9dacc29a177f' into fix/asset_path
Merge pull request #140 from binford2k/fix/asset_path

Fix/asset path