Minor nitpick on code style, I recommend using either `return` or the convention of the last statement, but not both.  It's a bit harder to read since the first thing that popped into my mind looking at like 24 is "Does this method return anything other than `"/etc/yum.repos.d"`?