Replace \t for the space, Add osx under the gnu stat command support