Added logic to only set platform_name if platform is ubuntu