s/self.libraries/self.lib_dir/ bugfix