If you open a project, then the location of the .Rproj file will be the working directory. To use a project properly/cleanly you should store .R scripts in a folder under the working directory, so there will be a relative path to them.
That said, if you open scripts from other locations from within a project then the working directory should not change. Without knowing what you have done in detail it's difficult to understand your issue.