Use __dirname to read script