only remove absolute paths if able