Make username replacement in inittab more robust