Fixes allocate_DIR problem in init_idle