Function for appending path.sep to the end of string if necessary

@param string {String}
@return {String}
function fixPath(string){
  if(string.length < 1){
    return string;
  }
  
  if(string.charAt(string.length-1) !== path.sep){
    string += path.sep;
  }
  return string;
}