Update attachment.rb, set back S3/Heroku behavior

The last modification on has_attached_file removed the s3 upload.