Fixed token parsing to work on linux.