Changed design of setPackagePath and _checkPackagePath

Replaced Simulator._checkPackagePath as this function not only checked
the argument, but also set a data member. This is now split into to
function. One gets the default package path, and one that sets the
package path.
Updated regression tests.