Improved CLI argument checking

Trim trailing slash from directory paths for iput
Merge pull request #102 from keithj/devel

Improved CLI argument checking