fixed exception when inputs basedir does not exist

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