Adds ability to test with static resouces
Using process.csd rather then __dirname