Use Ruby, not shell in `not_if` conditions.

Use Ruby builtins to check directories/symlinks.

The test command spawns a shell, which is slow
and it breaks my chefspec, because it requires to mock commands.

Closes #190