cleanup bin script for mixed envs