fixed a bug when AchemyApi class is instanced in another php cli