Remove aws.phar and add source files; fix installation issues