Fixed manipulation with global libraries in some weird cases

Change-Id: Ife4ca8c8d2c42820dc74246e6ad2a76d33047d46
1 file changed