Moved user directories into a separate package.
Updated xdg test.
Use init function.
Allocate userDirs where it is declared.