protected function _getPath()
{
if (empty($this->args[0]) || !file_exists($this->args[0])) {
throw new InternalErrorException('Path not specified or invalid.');
}
if (count($this->args) === 1) {
return realpath($this->args[0]);
}
return realpath($this->args[1]);
}