Properly detect relative paths (new Resources model) when updating .properties files