Fix 404 and ignore .ruby-version/gemset files

Thought this might be useful to you. It got the script working for me.