front: Use API to get libs directory, rather than hard-coding it.

Still not 100% sure this solves every library loading exception, but
it's worth trying.