sh: Remove prefix() function. Use strncmp() instead.