Fixed file sequence detection on linux