@ghoneycutt changed it to one case statement and one if statement. The case statement will be extended when support for more distros are added.