Some minor issue fixes

I propose two fixes for:
1) an issue that caused certain files (.DS_Store in my case) to be detected as mat files, generating an error
2) an issue where setting the amount of cores manually did not work correctly