More robust error handling when a command fails.
Better default location for structure fragment library.