Use modules dir installation installation prefix also for libraries

Change-Id: If1372fa86204e2bd0cb8a48744cd56dfe4a9695f