Improving rake task to download pdf files