Delegate creation of relative path to TargetSpec instance

I am very unsure about the formatting changes. Do we have a set of formatting rules for eclipse that I could use?