remove a trailing slash in qt5 formula