Store registered packages on the global namespace and change the way the directory is determined