updated to work on local/remote servers

The changes made in this commit assume that the local folders have the
same name as the repo