adding check for APPDATA variable if we can't find HOME, this supports windows