Imported changes from Valves's offcial installer