Add debug flag to init.

When initing in debug mode, as controlled by MGR_DEBUG then we prepend to the
path, otherwise we append to the path.