PR for #388 Nested script files can't load relative script files.

Now I got a working solution with the tests fixed, there were some that were broken with the fix you might say but they were quiet easy to fix. Although I got it working without using any integration tests I still think some part might be easier and more accurate to test with integration tests instead of mocking everything, when you are mocking everything you can't be sure you are putting the pieces together in a correct way. I know some of you (or everyone :)) disagree to this, and I'm also fine with that but I still think that it will make some of testing much more accurate than it is now. But this is probably a discussion that should be somewhere else (is there a google group or something?)