Strip trailing slashes on --build-product-plist: fixes creating files named '.plist'