Moved boolean, filesystem and path into libbase.