Closes #3281

Closes https://github.com/JuliaLang/julia/pull/3281

Sorry about the multiple open pull requests, I am yet to get the complete hang of using git in this project here.