Take into account directories of input/output