Redundant file path sorting for Ubuntu (bugfix)