It won't work on PC and 'bash' does not seem to be used elsewhere... Perhaps this should check for pc and throw an error with an informative message.

*if(ispc) 
error('This function uses FSL's BET and requires Linux or OSX.');
end*