Adding namespace to s3 module
I solved this by linking to the correct path where the composer was placed (as suggested by Japo).

EDIT:

In another server setup, the same issue was fixed by adding php-curl module.