added support for libembedded_functions.so, reworked directory tree