Allow passing build options with IPython Magic

This allows the user to pass build options using the first line of the cell.
I can merge those checks. The `isinstance` check was for consistency with the check above.