Removing the problematic part of the relative path