call File.expand_path on ruby_dir, in case it contains '~'

I had to call `File.expand_path` on the ruby_dir variable, because it contained '~' which wasn't getting expanded to my home directory properly, causing the files to not be required.