Fix : magento-root-dir provided via composer.json

Fixed marshalling when developer provides magento-root-dir in composer.json file