Remove link for 32-bit libc and try Pathname.expand_path