Simplify runcmd on IEx
Import records that depends on others, closes #1334