FIX : avoid writing outside of build dir when running tests