Resolving variables - fix for PORT & __dirname