Fix baseurl generated from dist when built on CentOS 7