add methods to exec shell command in file converter and check that dir is subdir