Error generated by Automask in nipype.interfaces.afni

Function Automask raises error due to string '-apply_prefix <undefined>' generated in the 3dAutomask command