Removed some Windows-Only code and made APPDATA_DIR point to /usr/local/ when $ALLUSERSPROFILE is not set.