Replaced condition to check librarian-puppet.

It makes a simpler condition in if statement and it may run faster, too.