Removing hardcoded __dirname