Made loading of targets more robust, in terms of relative paths