Fix main bin script