Somehow the actual file was missing and everything i needed to do was get the spm_get_defaults.m file from github.
I wasn't expecting the file to just be missing but that was what solved it
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!