fix one little perf issue on filesep