ModuleManager: Fix problem while reading files with short names

Change-Id: Ib42287d75e82495ac83565fa588d393742679c28