little logic to hopefully take care of either OSX or Linux