Fix node path when passed in as a single string