Added checks for env vars and continue if file not found on S3