used pathSeparator instead of separator. Fixed now.