fix: refactore slinks to load functions in build-install
add: check symlinks in build-install and fix undefined behavior with conditional or in if statement