Fixed weird bug when MIRAKEL_DIR is null