create_changelog.pl: Use submodule command depending on .gitmodules.

This makes it possible to run it on a module repository.

Change-Id: Ib84d070dea8be984855b2f221980d3b544d53820
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>