Fix issue #694

This commit fixes (definitively) issue #694. AbstractCommand class now correctly get
the input-dir option value, also for `sql:insert` command.

Merging this PR, we could close also PR #692.