Use the $os variable to determine which PEM file to use.