rename function in osutils to reflect its usage in both mac/linux, add extra variable to cleanout