Fixed crash in debug mode caused by incorrect debug directory path.