How to install MARSBAR toolbox in SPM12?
Thanks for the comments, @serk1. The answer to this question is that that is a bug, it seems.

I gave up editing the scripts myself and decided to reinstall Matlab and Marsbar, and it properly recognized the path and the permission for the files after that. 

I will leave the question here, in case someone run into similar problems.