However, there might be a problem: Composer does not have to be installed, it can for example be shipped with a project, and is being run pretty much the same way you would run a jar. 

So maybe it might be a better idea to have a conf switch to enable composer support here, but this is for sure way beyond my ruby capabilities, I have to admit.