Added an if else to work with both my local Mac and my SmartOS VPS.