Refactor using SCHEMEURI and FILENAME variables
Copied from load_stw_versions.sh
Adapted to thesoz