Only set kern.corefile location if it exists