create bin dir if needed
correct the conditional