Made pull more robust against missing directories.