fix(dependency): check that the executable is not a directory