build_core: filter out submodule status indicators that create an invalid revision string

git-svn-id: https://rebeccablackos.svn.sourceforge.net/svnroot/rebeccablackos@2996 56e3d1a8-0179-4092-b3e2-9fbbcda0c0a9