Fix installer to better deal with ending slashes