Fixed bug in libstruct base_dir