Fix undefined $folders and other platform get issues