Updated entry point to not run stuff twice when using Composer and composer.lock

Change-Id: I9e6a81584aebb01bb7dffa67aa32dd47b3dd227b