Improvements with the use of node path module