Add ARM and ARM64 support for dylib insertion

Added support for ARM and ARM64 cpu types. Logic for i386 and x86_64 stay unchanged