minor bug fix in ponysay-tool + more flexible code

Signed-off-by: Mattias Andrée <maandree@operamail.com>