Fixed parsing of ls output to properly handle s, S, t and T (fixes #125)