Updated init to not duplicate composer path

No need to duplicate the code, the variable can be re-used