Fix a bug with prefixed path while looking for a module.

This bug broke autopack2 test.

Signed-off-by: Jerome Maloberti <jmaloberti@gmail.com>