Fixed a bug on Linux

folders() was always returning an empty list