Fix more warnings
Fix repo-open-file for non-filesources