use test -f instead of ls in register_site.sls too