Fix buildpath for persistence