Cope with no refernce genome info in XML

avoid array deref on undef
avoid chdir with changed symlink commands