Chains: small fixes: non-folders, empty files and CosmoMC chain name from prefix