choosing correct bin dir