Shouldn't we check if `$prefix` starts with a slash, too?