Correct BASEDIR var, autodetect ICE_BASEDIR