update to use build folder when possible