fixed Exception when inputs basedir does not exist

Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>