use cwd instead of __dirname