Fix for issue #202

I've tested this on a Nexcess box and it (along with the changes from #223) should fully resolve #202. The fix in #223 resolves the issue when it crops up during the modman check, and this one does the same in the Magento detection method.