updated scripts to handle lib_managed in different locations