Improve composer autoload guard to handle a stand-alone install of tool