Add auto detection for os family and arch, to copy only nessecary libs