fix folder parsing. atom (the editor) was changing the indentation.
simplify client getFolders