fixed the bug of not setting the repo_location properly with sed