Remove trailing slash to avoid wget errors