Changed scope cache loading to happen later.
Fixed a bug where the link module depended on the current working directory.