chdir before globbing so that we don't need to escape directory names.
chdir before globbing so that we don't need to escape directory names.

fixes #5521

EmmaB/rails-1,arunagw/rails,yalab/rails,koic/rails,riseshia/railsguides.kr,Sen-Zhang/rails,BlakeWilliams/rails,georgeclaghorn/rails,untidy-hair/rails,schuetzm/rails,travisofthenorth/rails,voray/rails,rails/rails,marklocklear/rails,riseshia/railsguides.kr,rossta/rails,richseviora/rails,ngpestelos/rails,brchristian/rails,MichaelSp/rails,travisofthenorth/rails,sergey-alekseev/rails,maicher/rails,illacceptanything/illacceptanything,sergey-alekseev/rails,georgeclaghorn/rails,aditya-kapoor/rails,yhirano55/rails,lcreid/rails,gavingmiller/rails,odedniv/rails,kmcphillips/rails,Sen-Zhang/rails,rafaelfranca/omg-rails,ttanimichi/rails,Spin42/rails,pschambacher/rails,matrinox/rails,yalab/rails,kaspth/rails,notapatch/rails,rbhitchcock/rails,aditya-kapoor/rails,koic/rails,ledestin/rails,yalab/rails,shioyama/rails,flanger001/rails,Envek/rails,kaspth/rails,kddeisz/rails,lucasmazza/rails,mtsmfm/railstest,Vasfed/rails,repinel/rails,mtsmfm/rails,vassilevsky/rails,tijwelch/rails,alecspopa/rails,bogdanvlviv/rails,kddeisz/rails,illacceptanything/illacceptanything,odedniv/rails,tjschuck/rails,esparta/rails,mohitnatoo/rails,esparta/rails,tjschuck/rails,marklocklear/rails,ngpestelos/rails,bolek/rails,rossta/rails,pvalena/rails,MSP-Greg/rails,illacceptanything/illacceptanything,samphilipd/rails,baerjam/rails,BlakeWilliams/rails,pschambacher/rails,gcourtemanche/rails,88rabbit/newRails,yawboakye/rails,travisofthenorth/rails,brchristian/rails,notapatch/rails,yhirano55/rails,hanystudy/rails,iainbeeston/rails,joonyou/rails,kddeisz/rails,sealocal/rails,schuetzm/rails,illacceptanything/illacceptanything,rafaelfranca/omg-rails,Erol/rails,palkan/rails,Erol/rails,eileencodes/rails,kaspth/rails,gavingmiller/rails,coreyward/rails,rbhitchcock/rails,mechanicles/rails,Vasfed/rails,hanystudy/rails,bolek/rails,kmcphillips/rails,maicher/rails,shioyama/rails,ledestin/rails,jeremy/rails,MichaelSp/rails,eileencodes/rails,coreyward/rails,yasslab/railsguides.jp,ledestin/rails,richseviora/rails,flanger001/rails,gauravtiwari/rails,yahonda/rails,mathieujobin/reduced-rails-for-travis,amoody2108/TechForJustice,felipecvo/rails,georgeclaghorn/rails,ttanimichi/rails,alecspopa/rails,riseshia/railsguides.kr,aditya-kapoor/rails,xlymian/rails,betesh/rails,mathieujobin/reduced-rails-for-travis,Stellenticket/rails,lcreid/rails,schuetzm/rails,yhirano55/rails,assain/rails,mathieujobin/reduced-rails-for-travis,bradleypriest/rails,Vasfed/rails,voray/rails,amoody2108/TechForJustice,joonyou/rails,kmayer/rails,MSP-Greg/rails,rails/rails,georgeclaghorn/rails,kmcphillips/rails,ngpestelos/rails,Spin42/rails,vipulnsward/rails,printercu/rails,deraru/rails,gavingmiller/rails,maicher/rails,prathamesh-sonpatki/rails,joonyou/rails,rossta/rails,yasslab/railsguides.jp,schuetzm/rails,bradleypriest/rails,gfvcastro/rails,travisofthenorth/rails,pvalena/rails,amoody2108/TechForJustice,lucasmazza/rails,yasslab/railsguides.jp,Edouard-chin/rails,mohitnatoo/rails,kamipo/rails,yahonda/rails,Stellenticket/rails,vipulnsward/rails,Erol/rails,voray/rails,repinel/rails,mijoharas/rails,kenta-s/rails,illacceptanything/illacceptanything,utilum/rails,88rabbit/newRails,assain/rails,flanger001/rails,gfvcastro/rails,yawboakye/rails,betesh/rails,kenta-s/rails,tgxworld/rails,illacceptanything/illacceptanything,mijoharas/rails,deraru/rails,MSP-Greg/rails,baerjam/rails,gcourtemanche/rails,kmcphillips/rails,fabianoleittes/rails,jeremy/rails,gauravtiwari/rails,kachick/rails,kachick/rails,kirs/rails-1,BlakeWilliams/rails,vassilevsky/rails,arjes/rails,88rabbit/newRails,MSP-Greg/rails,lucasmazza/rails,printercu/rails,yawboakye/rails,bogdanvlviv/rails,notapatch/rails,EmmaB/rails-1,shioyama/rails,joonyou/rails,bolek/rails,kamipo/rails,gfvcastro/rails,palkan/rails,pvalena/rails,coreyward/rails,repinel/rails,yahonda/rails,fabianoleittes/rails,tgxworld/rails,samphilipd/rails,Edouard-chin/rails,yasslab/railsguides.jp,tgxworld/rails,jeremy/rails,jeremy/rails,tijwelch/rails,richseviora/rails,illacceptanything/illacceptanything,EmmaB/rails-1,bogdanvlviv/rails,mohitnatoo/rails,xlymian/rails,rbhitchcock/rails,kenta-s/rails,Envek/rails,kirs/rails-1,Edouard-chin/rails,illacceptanything/illacceptanything,esparta/rails,arunagw/rails,matrinox/rails,illacceptanything/illacceptanything,stefanmb/rails,Sen-Zhang/rails,Envek/rails,rails/rails,illacceptanything/illacceptanything,Stellenticket/rails,Spin42/rails,prathamesh-sonpatki/rails,xlymian/rails,arjes/rails,shioyama/rails,betesh/rails,mtsmfm/railstest,felipecvo/rails,notapatch/rails,prathamesh-sonpatki/rails,stefanmb/rails,yawboakye/rails,riseshia/railsguides.kr,odedniv/rails,kmayer/rails,iainbeeston/rails,Stellenticket/rails,bogdanvlviv/rails,illacceptanything/illacceptanything,kmayer/rails,iainbeeston/rails,vipulnsward/rails,illacceptanything/illacceptanything,brchristian/rails,mtsmfm/rails,rafaelfranca/omg-rails,assain/rails,BlakeWilliams/rails,untidy-hair/rails,koic/rails,assain/rails,printercu/rails,Erol/rails,iainbeeston/rails,felipecvo/rails,matrinox/rails,mtsmfm/railstest,starknx/rails,untidy-hair/rails,hanystudy/rails,mechanicles/rails,gcourtemanche/rails,baerjam/rails,fabianoleittes/rails,prathamesh-sonpatki/rails,mijoharas/rails,mechanicles/rails,vassilevsky/rails,vipulnsward/rails,pschambacher/rails,kachick/rails,esparta/rails,deraru/rails,gfvcastro/rails,arunagw/rails,betesh/rails,starknx/rails,elfassy/rails,utilum/rails,illacceptanything/illacceptanything,ttanimichi/rails,yalab/rails,kirs/rails-1,repinel/rails,tgxworld/rails,samphilipd/rails,kddeisz/rails,arjes/rails,Vasfed/rails,illacceptanything/illacceptanything,palkan/rails,yahonda/rails,utilum/rails,deraru/rails,mechanicles/rails,MichaelSp/rails,eileencodes/rails,elfassy/rails,lcreid/rails,sergey-alekseev/rails,elfassy/rails,arunagw/rails,yhirano55/rails,flanger001/rails,tjschuck/rails,lcreid/rails,sealocal/rails,marklocklear/rails,palkan/rails,mohitnatoo/rails,mtsmfm/rails,starknx/rails,utilum/rails,printercu/rails,rails/rails,stefanmb/rails,baerjam/rails,sealocal/rails,pvalena/rails,alecspopa/rails,kamipo/rails,aditya-kapoor/rails,fabianoleittes/rails,gauravtiwari/rails,Envek/rails,bradleypriest/rails,untidy-hair/rails,illacceptanything/illacceptanything,Edouard-chin/rails,eileencodes/rails,tjschuck/rails,tijwelch/rails