title: AWS S3: command not found and cannot configure "testbucket" error
body: <p>I am running file upload to AWS S3 python script using a cron job.
  The result of the cron job is sent via mail to me.</p>
  
  <p>Everything is working fine except the extra message that I'm getting in mail.
  The error is <code>sh: aws: command not found</code>.</p>
  
  <p>I tried setting the PATH environment variable in the script;</p>
  
  <pre><code>os.environ["PATH"] = "usr/bin:/usr/local/bin"
  </code></pre>
  
  <p>and I got rid of the error, but a new one showed up <code>The config profile (247-datapusher-s3) could not be found</code></p>
  
  <p>Just want to get rid of both of these messages.</p>
  
  <h1>*Note:  <em>The script is working perfectly in both the cases and the files are successfully uploaded to AWS S3 bucket.</em></h1>
  
  <p>Thanks in advance!! :)</p>