I can address one of your questions--the error:
** ERROR: Unknown space_name ORIG
whereami NULL string out.
Looks like this error comes from there not being any ORIG template space. I've been able to resolve this error by adding the following xml block to the subject's SessionAtlases.niml file (note you could also add this to a more general location where afni looks for atlases, such as ~/abin/AFNI_atlas_spaces.niml:
<TEMPLATE_SPACE
space_name="ORIG"
generic_space="ORIG"
comment="Native space of subject"
></TEMPLATE_SPACE>