More robust shim.html for non-root deploys