Fix path computation if the user specifies "/" as input/ouput dir
Invert conditional expression to match the previous one