Use command-line parameters to define directory for states and chains.