added missing abspath check