Fix setting of $containing_dir

The line, that is setting $containing_dir was erroneous.