Fixed base directories to be canonical, i.e. resolved to absolute paths at startup.
Fixed directory resolution in command-line procedures.
Fixed issue with excessive whitespace in arguments to command-line procedures.