Fixes some --base-url normalization issues and bad build paths