unlink empty file if getlink fails