Use a full path to configdir when using portable mode

This avoids the issue of plugins changing paths on us