RC script: symlink resolution, repo check moved earlier