Correctly determine path for sources when installing