Use unlinkat() everywhere instead of unlink()