Move PATH_SEP into the function