moving flush alias into if statement to check if osx