minor bug fix to make sure script runs OS when specified