refactor newrepo.js script to use path.join instead of string concatenation