Fixed a bug where a trailing slash in the target URL of a UMD app will break deployment.