fix tr options for POSIX systems