Re-factor TraitMCMC.* to avoid using system()

Also changed MCMC.* to simplify check for existing files.