Do command subst for each directory in PATH