Fixes problem with other urls passed into the function.

When urls are passed into this function, they originate from Rails.
Rails already knows the full path, so the expansion only should happen
on the default project list.