Fixed crash when map directory doesn't exist